import util from "@/utils/request";
let $axios = util
const queryUserList = (params) => {
    return $axios({
        url: '/api/queryPageUserinfoList',
        method: 'get',
        params
        
    })
}//查询用户列表
const deleteUser = (params) => {
    return $axios({
        url: `/api/delUserinfo/${params}`,
        method: 'delete',
    })
}//删除用户
const addUserInfo = (data) => {
    return $axios({
        url: '/api/addUserInfo',
        method: 'post',
        data
    })
}//添加用户
const editUserInfo = (data) => {
    return $axios({
        url: '/api/updateUserInfo',
        method: 'put',
        data
    })
}//编辑用户
const getUserInfo = (params) => {
    return $axios({
        url: `/api/queryUserInfoDetail/${params}`,
        method: 'get',
    })
}//用户详情
export default {
    queryUserList,
    deleteUser,
    addUserInfo,
    editUserInfo,
    getUserInfo
}